Viewing 15 posts - 6,361 through 6,375 (of 15,381 total)
rocky_498 (10/29/2013)
Need help.. Here is my sample data
LAT|BOX|5290113661|BP9744524|PHY|JAI|GREWAL|1|BI|Vacc Bill|MED|191.2||SHI||20131015|50242006001|||||6|116820411||
LAT|BARDI|TAMMY|20020 44th|PHY|MARK|MORADI|BI|Vacc Bill|MED|183.0||SHI||20131016|50242006001|||||6|116899590||
LAT|ARRE|SONIA|344 RICH|PHY|IAN|HANT|1|BI|Vacc Bill|MED|153||SHI||20131016|50242006|||||3|116786607|
AND I want to be my out put in Flat file like this.
LAT|BOX|5290113661|BP9744524|
PHY|JAI|GREWAL|1|
BI|Vaccine Bill|
MED|191.2||
SHI||20131015|50242006001|||||6|116820411||
LAT|BARDI|TAMMY|20020 44th Ave|
PHY|MARK|MORADI|
BI|Vaccine...
October 29, 2013 at 12:33 pm
Hi and welcome to the forums. In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form...
October 29, 2013 at 12:28 pm
shornick (10/29/2013)
Why not just do something simple like:
select...
October 29, 2013 at 12:27 pm
Ed Wagner (10/29/2013)
Sean Lange (10/29/2013)
Chad Crawford (10/29/2013)
October 29, 2013 at 12:22 pm
Chad Crawford (10/29/2013)
October 29, 2013 at 9:16 am
Yeah that sounds like they need some serious help. You are absolutely right that adding NOLOCK to every query is dealing with the symptom not the cause. The real issue...
October 29, 2013 at 8:01 am
I agree with Keith. Crosstabs are generally more efficient than PIVOT. Take a look in my signature at the two articles about cross tabs.
October 29, 2013 at 7:53 am
oliver.morris (10/28/2013)
Thanks so much Sean, really appreciate the help it's working like a gem now.Thanks again,
Oliver
You're welcome. Glad that worked for you and thanks for letting me know.
October 28, 2013 at 2:55 pm
So this is DB2? I have no idea how this would work. I worked with DB2 once about 15 years ago. I think that timestamp is the same as datetime....
October 28, 2013 at 2:12 pm
dndaughtery (10/28/2013)
For example if I have the following row:
ProjectedTimeTill100PercentSellThrough...
October 28, 2013 at 1:57 pm
In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form of INSERT INTO statements
3. Expected results...
October 28, 2013 at 12:48 pm
itsjustme (10/28/2013)
My problem is that
1) tableA.IP1 has Nulls
2) TableA has more data that's hard for me to compare based on just one column...
October 28, 2013 at 12:36 pm
Meanwhile I would recommend that you use ANSI-92 style joins instead of the older ANSI-89 style. The end result is exactly the same thing but it is a bit easier...
October 28, 2013 at 12:23 pm
When you execute dynamic sql the scope is only for the current commands. The context of the executing code does not change. In other words, your statements are executing but...
October 28, 2013 at 12:18 pm
dndaughtery (10/28/2013)
October 28, 2013 at 12:12 pm
Viewing 15 posts - 6,361 through 6,375 (of 15,381 total)