dupuis2387
Programmer
Hello
I need to figure out to group the results of a query (select * from table1 a where not exists (select * from table2 b where
a.columname = b.columname)
That query returns 192 rows, now those rows all trace back to a SourceFile file in the SourceFile column, certain rows draw from the same SourceFile in the SourceFile column. What i need to do is create a query that will take the result of the query specified above and create two columns that says these many rows (records) draw back from this SourceFile.
EX:
SourceFile|Records
==========|========
File1 |12 rows belong to this file(from the 1st query)
File2 | 5 rows belong to this file(" ")
etc...
I know I need to use the group by query, but i just can't figure out the right syntax.
Help?
I need to figure out to group the results of a query (select * from table1 a where not exists (select * from table2 b where
a.columname = b.columname)
That query returns 192 rows, now those rows all trace back to a SourceFile file in the SourceFile column, certain rows draw from the same SourceFile in the SourceFile column. What i need to do is create a query that will take the result of the query specified above and create two columns that says these many rows (records) draw back from this SourceFile.
EX:
SourceFile|Records
==========|========
File1 |12 rows belong to this file(from the 1st query)
File2 | 5 rows belong to this file(" ")
etc...
I know I need to use the group by query, but i just can't figure out the right syntax.
Help?