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

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -