Viewing 15 posts - 9,166 through 9,180 (of 13,882 total)
Koen Verbeeck (8/5/2014)
Phil Parkin (8/5/2014)
Unless your database is case-sensitive, you don't need the UPPERs.Also you should always qualify your tables with their schema.
And you should finish your statements with the...
August 5, 2014 at 1:15 am
Unless your database is case-sensitive, you don't need the UPPERs.
Also you should always qualify your tables with their schema.
So I've rewritten your query a little to account for the above.
with...
August 5, 2014 at 12:25 am
PIVOT should get you what you need. Have a look at this example and see whether it helps you.
July 31, 2014 at 11:46 pm
I have an 'XML-hacker' solution:
declare @add1 xml
set @add1 = (SELECT a.* from @address a
where a.AddressID = 9
FOR XML path('Addresses'))
if @add1 is null
begin
set @add1 = cast('<Addresses>
<AddressID />
<AddressType />
<Address1 />
<Address2 />
<City...
July 31, 2014 at 9:49 am
Don't think this works if there is no underlying row selected.
July 31, 2014 at 9:48 am
ronan.healy (7/30/2014)
so say its security name in the...
July 30, 2014 at 7:18 am
Same as any other view.
July 30, 2014 at 6:22 am
It's going to be tricky for a newbie, because the data seems to vary by 'type' and some techniques are required to get you through that.
Do you know what your...
July 30, 2014 at 6:14 am
Koen Verbeeck (7/30/2014)
Create a Subscription View (Master Data Services)
+1 - beat me to it.
July 30, 2014 at 6:10 am
What is the nature of this data - a flat file?
And you want to clean the data as part of an import to a db - is that right?
July 30, 2014 at 3:28 am
Koen Verbeeck (7/29/2014)
INSERT INTO db1.dbo.attendance_details(employee_no,date_of_attendance,present,shift_type,marked_by)
SELECT employee_no,date_of_attendance,present,shift_type,marked_by
FROM db2.dbo.attendance_details
WHERE date_of_attendance IN ('2014-07-01','2014-07-02');
Might need to tweak your filter a bit:
--
WHERE date_of_attendance >= '2014-07-01' and date_of_attendance < '2014-07-03'
July 29, 2014 at 1:52 am
Here is how I would try to do it.
Do an INSERT to your identities table such that it generates all of the idents you need in one hit.
Then use an...
July 28, 2014 at 7:49 am
Things are going wrong with this line, clearly:
select @newid, otherstuff, otherstuff1 from @temp where @i = idx
Does the actual version of the code select its data from multiple tables, by...
July 28, 2014 at 7:32 am
alezar (7/28/2014)
I'm working on the conversion of a group of DTS to SSIS and the function of a part of them is to export data from an Oracle database to...
July 28, 2014 at 5:06 am
Viewing 15 posts - 9,166 through 9,180 (of 13,882 total)