Hi, I was wondering about this table and the sql statement:
This is the sample Invoice table:
Source | Items
IG SEL
IG ANB
Null BEL
IG REN
Null REN
I like to count how many items are in NULL and IG. This is my SQL statement:
Select Count(a.Source) as numIG
Select Count(b.Source) as numNull
From Invoice a, Invoice b
where a.Source Like '%IG' and b.Source is null
I would like to get table like this one with my sql statement.
numIG | numNull
3 | 2
numIG is the total count of items in IG Source and numNull is the total count of items in null Source from Invoice table.
Thank you. Please let me know if you need any more information
This is the sample Invoice table:
Source | Items
IG SEL
IG ANB
Null BEL
IG REN
Null REN
I like to count how many items are in NULL and IG. This is my SQL statement:
Select Count(a.Source) as numIG
Select Count(b.Source) as numNull
From Invoice a, Invoice b
where a.Source Like '%IG' and b.Source is null
I would like to get table like this one with my sql statement.
numIG | numNull
3 | 2
numIG is the total count of items in IG Source and numNull is the total count of items in null Source from Invoice table.
Thank you. Please let me know if you need any more information