Limiting the number of queries returns in SQL Server 2008 -
this query
select fullname, rank, id_no, tin, birthdate, hair, eyes, blood, height, weight, marks, name, address [******_domain\****_*****].*******view
problem is, source table has many duplicates, how limit query latest row on database?
i'm using sql server 2008.
thanks in advance
my next problem view shows me birthdate
string format of yyyymmdd
, need change mm/dd/yyyy
can please provide me function? using same string above?
for duplicates, can limit records using select distinct
, , retrieve amount of records, can use select top #
# amount of records. latest record- i'm not sure can done unless have date field on record of when inserted.
Comments
Post a Comment