Re: Newbie SQL Question
- From: "Ana C. Dent" <anacedent@xxxxxxxxxxx>
- Date: Thu, 26 Jul 2007 04:53:30 GMT
chunji08@xxxxxxxxx wrote in news:1185422352.870669.219710
@x35g2000prf.googlegroups.com:
Hi there,
I have a sql question, if someone can help.
Let's say there is a table called "table_map", which has two columns,
"tablename" and "sql_mapping". If I say:
" select tablename from table_map where sql_mapping is not null.", I
will get a list of tables that exist in the same database.
Besides, if I say: "select count(*) from <table name>", I will get the
rows in one table.
So my Question is is there a way I can combine both SQLs into one,
that returns me the counts of each table, and the table_names from the
"table_map".
Thanks a lot for the tips.
Charlie.
sure, go ahead & do it.
Now what do you have?
.
- Follow-Ups:
- Re: Newbie SQL Question
- From: Laurenz Albe
- Re: Newbie SQL Question
- References:
- Newbie SQL Question
- From: chunji08
- Newbie SQL Question
- Prev by Date: Re: extracting a sample of each condition
- Next by Date: Re: PLS-00231: Function "calculate_1" may not be used in SQL
- Previous by thread: Newbie SQL Question
- Next by thread: Re: Newbie SQL Question
- Index(es):