I have the following code:[code]Select create_timeFrom ticket_historyAs CreateDate[/code]This of course works the way it supposed to and lists every ticket.I need to add a date parameter similar to the following the parameter is @BeginningDate[code]SELECT TransactionTypeCd, BookDtFROM spi.dbo.AccountStatsWHERE TransactionTypeCd = 'FlatCancel' AND BookDt BETWEEN (@StartDate) AND (@EndDate)[/code]I have tried adding a Where CreateDate = @BeginnignDate but that does not work.Can someone help me with the syntax on this?
↧