Click here to Skip to main content
15,923,164 members
Home / Discussions / Database
   

Database

 
AnswerRe: Database design issue - Pl Sugget a better way Pin
Eddy Vluggen24-Jan-11 8:29
professionalEddy Vluggen24-Jan-11 8:29 
AnswerRe: Database design issue - Pl Sugget a better way Pin
PIEBALDconsult24-Jan-11 9:50
mvePIEBALDconsult24-Jan-11 9:50 
QuestionFOR XML AUTO and column name with space problem in SQL Server 2005 Pin
Tridip Bhattacharjee20-Jan-11 19:36
professionalTridip Bhattacharjee20-Jan-11 19:36 
AnswerRe: FOR XML AUTO and column name with space problem in SQL Server 2005 Pin
Richard MacCutchan20-Jan-11 21:44
mveRichard MacCutchan20-Jan-11 21:44 
Questiondynamic sql and store output in variable sql server2005 Pin
Tridip Bhattacharjee20-Jan-11 6:36
professionalTridip Bhattacharjee20-Jan-11 6:36 
AnswerRe: dynamic sql and store output in variable sql server2005 Pin
Corporal Agarn21-Jan-11 5:46
professionalCorporal Agarn21-Jan-11 5:46 
AnswerRe: dynamic sql and store output in variable sql server2005 Pin
Costica U22-Jan-11 8:00
Costica U22-Jan-11 8:00 
QuestionSQL and Joining in sql server2005 Pin
Tridip Bhattacharjee20-Jan-11 2:18
professionalTridip Bhattacharjee20-Jan-11 2:18 
suppose i have two tables in sql server one is Emp and another is FieldsInfo. both table structure look like below

CREATE TABLE [dbo].[Emp](
[ID] [int] NOT NULL,
[EmpName] [varchar](50) NULL,
[Sal] [nchar](10) NULL,
)

CREATE TABLE [dbo].[FieldsInfo](
[TableName] [varchar](max) NULL,
[FieldName] [varchar](max) NULL,
[Description] [varchar](max) NULL
)

now i want to join both the table such way that sql should show data from emp table but field name will be shown from FieldsInfo table according to the relation. i mean Employee ID will be shown as Field name instead of ID and Salary will be shown as field name instead of Sal but value will be just like emp table. i am not being able to generate this type of output after joining. so please help with right sql script.

thanks
tbhattacharjee

AnswerRe: SQL and Joining in sql server2005 Pin
dasblinkenlight20-Jan-11 7:27
dasblinkenlight20-Jan-11 7:27 
GeneralRe: SQL and Joining in sql server2005 Pin
Mahendra Vishwakarma20-Jan-11 20:32
Mahendra Vishwakarma20-Jan-11 20:32 
AnswerRe: SQL and Joining in sql server2005 Pin
Pravin Patil, Mumbai20-Jan-11 21:37
Pravin Patil, Mumbai20-Jan-11 21:37 
QuestionHow to create an outlook task using SQL? Pin
obarahmeh20-Jan-11 2:04
obarahmeh20-Jan-11 2:04 
AnswerRe: How to create an outlook task using SQL? Pin
David Mujica20-Jan-11 3:26
David Mujica20-Jan-11 3:26 
GeneralRe: How to create an outlook task using SQL? Pin
obarahmeh20-Jan-11 6:15
obarahmeh20-Jan-11 6:15 
GeneralRe: How to create an outlook task using SQL? Pin
David Mujica20-Jan-11 7:59
David Mujica20-Jan-11 7:59 
QuestionReplacing ' in a string Pin
phimix19-Jan-11 21:52
phimix19-Jan-11 21:52 
AnswerRe: Replacing ' in a string Pin
Richard MacCutchan19-Jan-11 22:00
mveRichard MacCutchan19-Jan-11 22:00 
GeneralRe: Replacing ' in a string Pin
phimix19-Jan-11 22:21
phimix19-Jan-11 22:21 
AnswerRe: Replacing ' in a string Pin
Jörgen Andersson19-Jan-11 22:06
professionalJörgen Andersson19-Jan-11 22:06 
AnswerRe: Replacing ' in a string Pin
Luc Pattyn20-Jan-11 0:27
sitebuilderLuc Pattyn20-Jan-11 0:27 
AnswerRe: Replacing ' in a string Pin
RyanEK20-Jan-11 17:10
RyanEK20-Jan-11 17:10 
QuestionOverwrite insipte of appending ?? why ?? Pin
scorp_scorp19-Jan-11 21:04
scorp_scorp19-Jan-11 21:04 
AnswerRe: Overwrite insipte of appending ?? why ?? Pin
jschell20-Jan-11 9:29
jschell20-Jan-11 9:29 
QuestionRe: Overwrite insipte of appending ?? why ?? Pin
scorp_scorp22-Jan-11 16:39
scorp_scorp22-Jan-11 16:39 
AnswerRe: Overwrite insipte of appending ?? why ?? Pin
jschell23-Jan-11 10:46
jschell23-Jan-11 10:46 

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.