Skip to content
Advertisement

Tag: oracle10g

How to turn 5 sets of data from one column into 5 different columns

My current table looks like this CPNT_ID Org_Id Stud ID Compl_Dte Trainee Org001 101010 Nov 13, 2016 SvcTech Org001 101010 Nov 13, 2016 CrewChief Org001 101010 Nov 13, 2016 Trainee Org001 101013 Nov 13, 2016 SvcTech Org001 101013 Nov 13, 2016 Trainee Org002 101011 Nov 13, 2016 SvcTech Org002 101011 Nov 13, 2016 Trainee Org002 101012 Nov 13, 2016 This

SQL join to find relavant codes and address

Below table contain address information. Code Code1 Code2 Address DAN001 DAN004 DAN005 ABC, Newyork. DAN004 DAN004 DAN004 Delhi, India DAN005 DAN005 DAN005 Ever, Belgium Please find table details below: Each Code have associated code1 and code2 and address last column. for example: DAN001 is associated with DAN004 and DAN005. Address for DAN001 is ABC, Newyork. Address for DAN004 is Delhi,India.

How to distribute stock quantity from a single cell to different aging brackets based on the the aging brackets quantities?

We have a table with item codes and current stock quantity and quantities in aging brackets whenever they were received (1-90, 91-120, etc) as follows: I need to distribute the STOCK_AS_ON_DATE quantity in the age brackets until no balance quantity is left. Example: Item A’s STOCK_AS_ON_DATE is 40377, in A1TO90 column we can see that 4000 quantities were received, in

Oracle: Id Not in another table

I have following two tables, airport and flying I would like to get airport_id where flying_id present in flying table but not present in airport table. I rote the following query using nested select query. Is there anyway I can improve without writing nested? Answer There are two ways. LEFT JOIN NOT EXISTS

Advertisement