Click here to Skip to main content
15,888,351 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Server. Insert into table whiles querying Pin
Eli Nurman17-May-11 0:23
Eli Nurman17-May-11 0:23 
AnswerRe: SQL Server. Insert into table whiles querying Pin
Luc Pattyn17-May-11 0:30
sitebuilderLuc Pattyn17-May-11 0:30 
AnswerRe: SQL Server. Insert into table whiles querying Pin
PIEBALDconsult17-May-11 2:57
mvePIEBALDconsult17-May-11 2:57 
GeneralRe: SQL Server. Insert into table whiles querying Pin
David Mujica17-May-11 9:04
David Mujica17-May-11 9:04 
AnswerRe: SQL Server. Insert into table whiles querying Pin
SilimSayo17-May-11 3:07
SilimSayo17-May-11 3:07 
AnswerRe: SQL Server. Insert into table whiles querying Pin
Shameel17-May-11 5:04
professionalShameel17-May-11 5:04 
AnswerRe: SQL Server. Insert into table whiles querying Pin
S Douglas8-Jun-11 5:52
professionalS Douglas8-Jun-11 5:52 
QuestionAdding Columns to derived table vs temp table Pin
MAW3016-May-11 13:53
MAW3016-May-11 13:53 
Can I make a derived table with a name for all
then an alias column names for each of the three unions

SELECT A.strName
FROM
(
SELECT strName
FROM [dbo].[Summary]
UNION
SELECT strName
FROM [dbo].[Summary_Old]
UNION
SELECT [TABLE_NAME]
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE'
) AS A

So it will look as follows:
strName, strName1, strName2, strName3, strCompare

All names will fall into strName
then only names in the first table will fall into strName1
etc.

Then I would like to compare these names in a fifth column strCompare
to add, delete, NA so I can synchronize tables and database
the Table Names are a reference for all tables in the DB to strNames

or should I set the names into a temp table then add columns and compare

How would I do the above either in derived or temp

Any help is appreciated
Thanks in advance,

Michael
AnswerRe: Adding Columns to derived table vs temp table Pin
loveangel88816-May-11 18:03
loveangel88816-May-11 18:03 
AnswerRe: Adding Columns to derived table vs temp table Pin
SilimSayo17-May-11 5:00
SilimSayo17-May-11 5:00 
QuestionRelation Theory Pin
bfis10813716-May-11 4:16
bfis10813716-May-11 4:16 
AnswerRe: Relation Theory Pin
SilimSayo16-May-11 6:18
SilimSayo16-May-11 6:18 
AnswerRe: Relation Theory Pin
Shameel17-May-11 4:32
professionalShameel17-May-11 4:32 
Questionmembers db or table? Pin
Jassim Rahma15-May-11 2:13
Jassim Rahma15-May-11 2:13 
AnswerRe: members db or table? Pin
dasblinkenlight15-May-11 22:54
dasblinkenlight15-May-11 22:54 
GeneralRe: members db or table? Pin
Jassim Rahma16-May-11 3:41
Jassim Rahma16-May-11 3:41 
GeneralRe: members db or table? Pin
dasblinkenlight16-May-11 3:50
dasblinkenlight16-May-11 3:50 
GeneralRe: members db or table? Pin
Jassim Rahma16-May-11 4:02
Jassim Rahma16-May-11 4:02 
GeneralRe: members db or table? Pin
dasblinkenlight16-May-11 4:10
dasblinkenlight16-May-11 4:10 
AnswerRe: members db or table? Pin
Shameel17-May-11 4:34
professionalShameel17-May-11 4:34 
QuestionUsing a variable table [modified] Pin
MAW3014-May-11 9:28
MAW3014-May-11 9:28 
AnswerRe: Using a variable table Pin
jschell14-May-11 11:39
jschell14-May-11 11:39 
QuestionDynamic column based on row Pin
Ramkumar_S13-May-11 23:26
Ramkumar_S13-May-11 23:26 
AnswerRe: Dynamic column based on row Pin
dasblinkenlight15-May-11 22:47
dasblinkenlight15-May-11 22:47 
QuestionMySql Foreign key referencing Pin
sajid.salim.khan13-May-11 21:39
sajid.salim.khan13-May-11 21:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.