Viewing 15 posts - 61 through 75 (of 82 total)
Hi,
i have doubt on table structure and design itself
in Workplace if its Primary key
then how can you put EmpNumber with it
each Employee have different Workplacecode ? if yes...
October 28, 2012 at 11:15 pm
Try this One
select
* -- What ever column you want
,(case when Customer.CustomerID >3 then Order.PO else Order.OrderID end) as 'PO/OrderID'
from
Customer
inner join CustomerOrders on Customer.CustomerID =CustomerOrders.CustomerID
inner join Order on CustomerOrders.OrderID...
October 28, 2012 at 10:45 pm
just go with practical scenario it may happen that email id same but domain different
in that case Just remove substring from "bitbucket-25253" solution
declare @T TABLE
(userid INT, emailname...
October 28, 2012 at 1:23 am
Yes my code is not at all optimize but yes it can be optimized
i was just giving one of solution using while loop that's i asked question first "do...
October 28, 2012 at 12:58 am
Check Redgate package tool
in that "Redgate compare" may help you
October 26, 2012 at 6:02 am
"Is Not" will not going to work you have to use != or <>
looking to your query it seems now problem is in and or combination you...
October 26, 2012 at 5:59 am
do you mean
you need to do this thing just with while loop not with cursor?
if yes then
declare @temptable table(i int identity(1,1) primary key,referencia varchar(50))
insert into @temptable
SELECT
referencia
FROM...
October 26, 2012 at 4:49 am
it seems fine from my side too.
can you please share some data and alse if possible table structure(involved in query)
so that have good visibility on query and can give...
October 26, 2012 at 3:14 am
do you have trigger in your any DB.(trigger may occupy lot memory)
as per my knowledge Sql server will utilize more memory(if its Free,no process required memory) unless and untill some...
October 26, 2012 at 3:07 am
What is Deptid datatype of Primary table.
both column datatype length should same of primary and child .
though try it from design view it may help you.
October 26, 2012 at 1:40 am
Hmmm but what if Skills are in different numbers for each ACCOUNTNO
Like
declare @skills TABLE
(
ACCOUNTNOVARCHAR(5),
...
October 26, 2012 at 12:00 am
it seems you have DD/MM/YYYY date formate
whats you column data type.
Question:but why you want maximum date in Min(Booked Date)
Like
Job Ref Max Date Min Date
C 12/10/2012 14/10/2012
now 14/10/2012 is maximum...
October 25, 2012 at 11:43 pm
Not getting your question properly
can you share some more data and also give result which you want.
give some more details in question.
October 25, 2012 at 7:03 am
Same thing Using Join in CTE
declare @Checador TABLE (
i int identity (1,1),
TARJETA int,
HORA datetime,
FECHA date,
RELOJ int)
INSERT @Checador VALUES
(30 , '02/08/2010 08:14' , '02/08/2010' , 1 ),
(30 , '02/08/2010 12:57'...
October 25, 2012 at 6:11 am
It is my pleasure helping you:-)
October 25, 2012 at 5:06 am
Viewing 15 posts - 61 through 75 (of 82 total)