Advertisement

1 - 10 of 30 containing alltags:("Nested SELECT") (0.001 seconds)
I have a select statement that has two nested select statements that compares a PK to a set of distinct values secondary field of type varchar. The pseudocode is: select id from atable where c...
Zones: DatabasesDate Answered: 01/01/2003 Grade: A Views: 0
Is it possible to do something like the following? I have two tables.. [Account] which contains a list of Account names along with unique ids, and [AnnualData] which contains the columns: year, ...
Zones: MS SQL ServerDate Answered: 06/09/2003 Grade: B Views: 0
I have a table ( person ) with the following: person_id   head_of_house   head_of_house_id  house_id      3                     f                                                 1    5       ...
Zones: PostgreSQLDate Answered: 05/06/2004 Grade: A Views: 0
Hi Here's part of my schema. products(productID, productDimension1, productDimension2, productDimension1unitID, productDimension2unitID,...) units(unitID, unitName) Units table contains...
Zones: MySQL ServerDate Answered: 01/07/2005 Grade: A Views: 0
Select id, 'MainImageURL' = CASE [Image]          WHEN '' THEN ''          ELSE (Select [Image Filename] from [myImageTable] where sku = convert(varchar(50),[Image]))       END from myTable ...
Zones: MS SQL ServerDate Answered: 05/05/2005 Grade: A Views: 0
This is my first question so I'm hoping someone will be able to help me.  I have a stored function that is to return a cursor.  The cusor is opened for select.  I'm getting an error regarding the i...
Zones: OracleDate Answered: 06/10/2005 Grade: A Views: 0
MS SQL 2000 I am trying to run a nested select command where the nested part is a stored procedure: SELECT * from table WHERE ID in (spSelectTest 'works') and get the error message:       ...
Zones: MS SQL ServerDate Answered: 10/14/2005 Grade: A Views: 0
I have a query on a single MEMORY table that is a bit tricky. The rows of the table represents contacts between users of type1 and type2. This query is performed quite frequently and must be effici...
Zones: MySQL ServerDate Answered: 11/30/2005 Grade: A Views: 0
I have a basic understanding of Mysql and PHP. I have serverl simplie data logging apps. I have a problem which i think is going to be easy to solve, but i just can't get my head around it. I...
Zones: MySQL ServerDate Answered: 10/05/2007 Grade: A Views: 4
Basically, I want to select all the unique records in a database based on a one or two columns.  Let's stick with 1 column for now.  Here is some sample date: TABLE Computers: ID | Computer Nam...
Zones: DatabasesDate Answered: 01/31/2004 Grade: C Views: 0