Viewing 15 posts - 91 through 105 (of 196 total)
Count( * ) gives the number of records in the table
Count ( columnName ) gives you the count of rows with values in that column
the number of null values is...
September 26, 2007 at 12:09 am
I am not sure if I am understanding your required result set correctly but
You could do something like
select cfg.*,
Value1 = Min(
Case v1.INTERNALVALUE
When cciCode1 Then v1.EXTERNAL_VALUE
Else null
End
)
, etc...
from v_configurationitem...
September 7, 2007 at 12:16 am
MAybe I should explain
Get the number of payments. Count( paymentNo )
Calculate number of pages with 4 Payments per page: Count( paymentNo ) /...
August 22, 2007 at 7:52 am
If I understand Correctly you want a max of 4 payments per page
Then The Page to print to is
PageNo = PaymentNo % ( Ceiling( Count(PaymentNo )/4.00 ) )
August 22, 2007 at 7:49 am
I must be over the top.
I am putting togethere a machine with 2*250 + 7*500GB Drives.....
March 1, 2007 at 1:48 am
What you are saying is part of the problem. In the example used I would only have stored 25 rows as apposed to 100000, so the space does become...
July 23, 2006 at 10:57 pm
I forgat to add, I have implemented a solutiopn for these ad-hoc columns or data, but the developers believe it is too difficult to use.... They have to execute a...
June 30, 2006 at 1:25 am
Thanks for the response.
That was the example. My problem is I have front end developers who are making changes to the database ( small company, they've been here longer...
June 30, 2006 at 1:22 am
Have you tested a similar package to a 32 bit machine, just wonderng if there is an issue with converting the information from the 64 bit machine to the 32...
April 12, 2006 at 9:45 pm
I think you should look at my ealier responses to your post. you should have an idea of how to do this after shecking those replies.
April 12, 2006 at 4:16 am
Use a case statement to split amount into Debit and Credit
Select Debit = Case When Amount > 0.00 Then Amount else 0.00 End
, Credit = Case...
April 12, 2006 at 4:12 am
Sorry I forgot to remove the 'With Rollup and Having clause'
There is no need for that.
April 12, 2006 at 4:01 am
Try This
Declare @Tab Table(
GL_ID Int
, GL_Name_VC VarChar(15)
, Amount Int
, Period_TI TinyInt
, Year_SI SmallInt
)
Insert into @Tab Values( 1000, 'Inventory', 8000 , 01 ,2005 )
Insert...
April 12, 2006 at 3:59 am
Simplified version
--====================================================
--First SQLTask using Source Connection
--Backup DB process-----
Backup Database {DBName}
To File = {BckupFile}
Declare @Cmd Varchar(2000)
Select @Cmd = 'Zip DBZipFile BckupFile'
Exec master..xp_cmdShell @Cmd
Select @Cmd = 'Copy DBzipFile DestZipFile'
Exec master..xp_cmdShell @Cmd
--===========================================================
The other...
April 12, 2006 at 3:30 am
I am shooting from the hip here, but I did something similar a while back.
This is how I remember it
1. Get the list of table reference from sysreferences
2. Compare your...
March 29, 2006 at 12:31 am
Viewing 15 posts - 91 through 105 (of 196 total)