July 18, 2012 at 6:39 am
i have 3 tables
1st table name tagtable in that columns are tagname,tagindex,tagtype,tagdatatype
2nd table name floattable in that columns are dateandtime,millitm,tagindex,val,status,marker
3rd table name stringtable in that columns are dateandtime,millitm,tagindex,val,status,marker
i want to take output like this
tagindex val
0 dgf
1 fdsf
2 dfgd
3 tert
4 rtret
5 ret
6 rtret
July 18, 2012 at 6:43 am
Please follow the second link in my signature on posting code & data, but we will need DDL, sample data, logic and expected outcome.
With that information we will be able to help you.
July 18, 2012 at 6:48 am
we are looking for something like this, that anyone on the interwebz can copy and paste so we can build sample queries for you to test with:
CREATE TABLE [dbo].[TAGTABL] (
[TAGNAME] VARCHAR(max) NULL,
[TAGINDEX] VARCHAR(max) NULL,
[TAGTYPE] VARCHAR(max) NULL,
[TAGDATATYPE] VARCHAR(max) NULL)
CREATE TABLE [dbo].[FLOATTABL] (
[DATEANDTIME] VARCHAR(max) NULL,
[MILLITM] VARCHAR(max) NULL,
[TAGINDEX] VARCHAR(max) NULL,
[VAL] VARCHAR(max) NULL,
[STATUS] VARCHAR(max) NULL,
[MARKER] VARCHAR(max) NULL)
CREATE TABLE [dbo].[STRINGTABL] (
[DATEANDTIME] VARCHAR(max) NULL,
[MILLITM] VARCHAR(max) NULL,
[TAGINDEX] VARCHAR(max) NULL,
[VAL] VARCHAR(max) NULL,
[STATUS] VARCHAR(max) NULL,
[MARKER] VARCHAR(max) NULL)
Lowell
July 18, 2012 at 6:50 am
Side note - Think I have just found my new avatar
July 18, 2012 at 7:27 am
Awesome...
Jared
CE - Microsoft
July 18, 2012 at 11:03 am
Can you also please add expected results to the placard the gentleman holds? :w00t:
July 18, 2012 at 11:42 am
Done!
I made this because i really do feel we are begging for the same thing all the time!
ColdCoffee (7/18/2012)
Can you also please add expected results to the placard the gentleman holds? :w00t:
Lowell
July 18, 2012 at 12:32 pm
Lowell (7/18/2012)
Done!I made this because i really do feel we are begging for the same thing all the time!
I concur 100% and thank you, Lowell 🙂
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply