Tuesday, March 27, 2012
Create Table Question
Im wondering if someone could help me out with how to write sql for the following type of query.
I have 3 known strings of characters and three associated sql queries. The queries will always return an integer.
I want a table so that column 1 is the list of known strings, and column 2 is the results of the three queries.
Thank youcreate table mytable
( string varchar(100)
, result integer
)|||Or maybe something like this:
create table mytable
( string varchar(100)
, result integer)
AS
select string, SUM(result) from (
select string, result from query1
UNION ALL
select string, result from query2
UNION ALL
select string, result from query3)
group by string;
:D
Saturday, February 25, 2012
CREATE INDEX statement for SQL Mobile not documented?
I'm unable to find documentation for the CREATE INDEX statement for SQL Mobile. DROP INDEX is documented however. Is this a known issue or am I missing something? This can be seen here:
http://msdn2.microsoft.com/en-us/library/ms173440(en-US,SQL.90).aspx
If you scroll the left pane up a little, you will notice that CREATE INDEX is not in the tree. Am I missing something?
Thanks.Thanks Ravi for catching this. And we are aware of it too.
We already have a bug opened in our Bug Database for this.
The next web site refresh should pickup the fix.
Thanks,
Laxmi NRO, MSFT, SQL Mobile, Microsoft Corporation|||Yes, the topic will be available in the December download version of SQL Server Books Online.
In the meantime, you can use the CREATE INDEX topic in the full version of Books Online : http://msdn2.microsoft.com/en-us/library/ms188783(en-US,SQL.90).aspx
Regards,|||
Finally it is live in SQL Mobile Books Online @. http://msdn2.microsoft.com/en-us/library/ms345331(en-US,SQL.90).aspx
Thanks,.
Laxmi Narsimha Rao ORUGANTI, MSFT, SQL Mobile, Microsoft Corporation
CREATE INDEX statement for SQL Mobile not documented?
I'm unable to find documentation for the CREATE INDEX statement for SQL Mobile. DROP INDEX is documented however. Is this a known issue or am I missing something? This can be seen here:
http://msdn2.microsoft.com/en-us/library/ms173440(en-US,SQL.90).aspx
If you scroll the left pane up a little, you will notice that CREATE INDEX is not in the tree. Am I missing something?
Thanks.Thanks Ravi for catching this. And we are aware of it too.
We already have a bug opened in our Bug Database for this.
The next web site refresh should pickup the fix.
Thanks,
Laxmi NRO, MSFT, SQL Mobile, Microsoft Corporation|||Yes, the topic will be available in the December download version of SQL Server Books Online.
In the meantime, you can use the CREATE INDEX topic in the full version of Books Online : http://msdn2.microsoft.com/en-us/library/ms188783(en-US,SQL.90).aspx
Regards,|||
Finally it is live in SQL Mobile Books Online @. http://msdn2.microsoft.com/en-us/library/ms345331(en-US,SQL.90).aspx
Thanks,.
Laxmi Narsimha Rao ORUGANTI, MSFT, SQL Mobile, Microsoft Corporation