Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

1.

Database tables and relations

1.1 Objective:

Learn how to use SQL Developer


Know about central tables and table relations in ABS.

1.2 Introduction to SQL Developer


Start SQL Developer:
A) Open a New Connection (from the file menu)
B) Login with username k and the password:

C)
D)
E)
F)

ARA DB:
premium
Training Factory DB: k

Click connect (you can also save this connection)


Browse tables using the tables list in the Connections window or
Use SQL queries in the Query Builder
Some tables can only be see after opening a session running the following statement:
exec session#.open_session();

B
A

D
exec session#.open_session();

OTS_Avaloq-Tables-Relations-SQLDev_2014-07v02.docx

12 August 2014

Page 1 of 2

1.3 Exercise
Nr. Task
1 Find the Business Partner (BP) Grald Gorgerat in the table OBJ
Hint: Search the BP in ABS (SmartClient), click Show with a right mouse click (the Navigator
opens) and find your Business Partners ID (Basics section)
2 In which table is the Business Partners name stored? Guess and check in the DB
3 How many versions of the name exist for the BP Lutz Mirjam (OBJ_ID = 455677)
4 What is the meaning of OBJ_TYPE_ID = 43?
Work out a solution using the following table names

5
6

7
8

OBJ: All Objects are defined in that table


CODE_OBJ_TYPE: All possible types of an object are defined here
CODE_OBJ_SUB_TYPE: all possible subtypes for a certain type of an object are defined in
this table
Are there sub types defined for the object type Business Partner?
a) What is the OBJ_TYPE_ID of Business Partner?
b) What is the OBJ_TYPE_ID of Container?
c) What is the OBJ_TYPE_ID of Country?
In which table are object keys stored (i.e. LUM for the BP Lutz Mirjam)?
a)
b)
c)
a)
b)
c)

What is the META_TYP_ID of Business Partner?


What is the META_TYP_ID of Container?
What is the META_TYP_ID of Stock Exchange?
What is the difference between META_TYP and OBJ_TYPE?
Does every META_TYP have an OBJ_TYPE? where is the answer?
Does every OBJ_TYPE have a META_TYP? where is the answer?

1.4 Central tables and their relations

OTS_Avaloq-Tables-Relations-SQLDev_2014-07v02.docx

12 August 2014

Page 2 of 2

You might also like