Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

michanne

@michanne
About
Posts
10
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • can anyone optimize this query
    M michanne

    I am guessing "id" is really custid since you are looking for custid in it. Are you looking for the max(priority) for EACH customer (1) or the max(priority) for all customers in pending(2)? 1. Select * From( Select custid, max(priority)as Priority From customer Where status = 1 and custid <> '' Group by id ) as subtable Join pending On subtable.custid= pending.custid 2. SELECT * FROM Pending Join Customer on pending.custid = customer.custid WHERE priority = ( SELECT max(priority) FROM customer Join pending on customer.custid = pending.custid WHERE customer.custid <> '' and status = 1 ) Where pending.custid <> '' michanne

    Database database sales code-review

  • running mysql_install_db on windows
    M michanne

    I believe that instruction is for linux. Those db's should already be installed. Look for section 2.4.1 in the manual. michanne

    Database perl database mysql question

  • MS SQL Server date format
    M michanne

    Left(Convert(char(6),getdate(),12),4) michanne

    Database database sql-server sysadmin question

  • Month to date in SP
    M michanne

    If you are interested in the last full month and need the last day - you run into problems with February. Try: declare @month char(10),@lastmonth datetime set @month = Convert(Char(6),getdate(),112)+'01' Print @month select @lastmonth = dateadd(m,-1,cast(@month as datetime)) print @lastmonth --First day of prior month select @lastmonth = dateadd(d,-1,cast(@month as datetime)) print @lastmonth --Last day of prior month Barbara

    Database sharepoint database tools question

  • SQL Server 8.0 and 7.0
    M michanne

    You mean 2000 - is that 8.0? You can have them both installed on the same machine. I believe you want 7.0 to exist and then install 2000 as a new instance - but I not sure that is a requirement. Barbara

    Database database sql-server sysadmin question

  • How to replace a string while retrieving data from an access database in ASP. NET
    M michanne

    Select IIF([empname]='tt','mm',[empname)) as empname From employeetable; This will give you mm if the value of empname is 'tt'; otherwise it will give you empname. Hope that is what you are looking for :cool: Barbara

    Database database help tutorial

  • Using UDFs in a SELECT
    M michanne

    oh - ok I see the problem. You can't use a variable in the FROM clause. You may need to put the function in place of @dates or use a derived set. Barbara

    Database database help java sql-server com

  • Using UDFs in a SELECT
    M michanne

    I suspect the problem is in the inner join statement. Try this: SELECT calc.* FROM @dates as fd INNER JOIN ( SELECT * FROM (dbo.calculation(fd.[date]))) as calc ON cc.[date] = fd.[date] Barbara :cool:

    Database database help java sql-server com

  • SP that support data Paging
    M michanne

    You have a couple of choices, Take your pick :) http://www.sqlservercentral.com/columnists/glarsen/sequentialnumbering\_printversion.asp Barbara

    Database asp-net sharepoint question

  • Question for an expert Transact SQL GURU!
    M michanne

    Actually you can do it. :cool: What you are missing is the that it needs to be an nvarchar. this is from http://support.microsoft.com/default.aspx?scid=kb;EN-US;q262499 \CREATE PROCEDURE Myproc @parm varchar(10), @parm1OUT varchar(30) OUTPUT, @parm2OUT varchar(30) OUTPUT AS SELECT @parm1OUT='parm 1' + @parm SELECT @parm2OUT='parm 2' + @parm GO DECLARE @SQLString NVARCHAR(500) DECLARE @ParmDefinition NVARCHAR(500) DECLARE @parmIN VARCHAR(10) DECLARE @parmRET1 VARCHAR(30) DECLARE @parmRET2 VARCHAR(30) SET @parmIN=' returned' SET @SQLString=N'EXEC Myproc @parm, @parm1OUT OUTPUT, @parm2OUT OUTPUT' SET @ParmDefinition=N'@parm varchar(10), @parm1OUT varchar(30) OUTPUT, @parm2OUT varchar(30) OUTPUT' EXECUTE sp_executesql @SQLString, @ParmDefinition, @parm=@parmIN, @parm1OUT=@parmRET1 OUTPUT,@parm2OUT=@parmRET2 OUTPUT SELECT @parmRET1 AS "parameter 1", @parmRET2 AS "parameter 2" go drop procedure Myproc Barbara, MCP

    Database database question sharepoint sql-server sysadmin
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups