Quantcast
Channel: Last record data
Browsing latest articles
Browse All 12 View Live

Re: Last record data

dragularHi all,Nocentre_idaccount_name19ABCD00126ABCD00138ABCD00142DEFG365858DEFG3658This one show save in DB.I want to know is how can I get last record in this database. Account Name is duplicate....

View Article



Re: Last record data

dragularDear all,I want to see No 3 & No 5 recordIf you actually want to grab the highest (or latest value) for each of the individual accounts, you'll need to perform aGROUP BY within your query...

View Article

Re: Last record data

Hi Dragular, You must use inner query , either inner side of join or outside as a separate table and then join. I just create sample from your above query.--1st approach SELECT top 500 customers.idno,...

View Article

Re: Last record data

Thank for reply me. Actually my code isSELECT top 500 customers.idno,customers.mobile_no, customers.status,users.fullname,users.mobile_num,users.user_id FROM customers LEFT OUTER JOIN user_customer ON...

View Article

Re: Last record data

Hi ,The second approach isdeclare @t table (No int,center_id int, account_name varchar(50) ) insert into @t values(1,9,'ABCD001') insert into @t values(2,6,'ABCD001') insert into @t...

View Article


Re: Last record data

Hi,declare @t table (No int,center_id int, account_name varchar(50) )insert into @t values(1,9,'ABCD001')insert into @t values(2,6,'ABCD001')insert into @t values(3,8,'ABCD001')insert into @t...

View Article

Re: Last record data

Dear all,I want to see No 3 & No 5 record

View Article

Re: Last record data

Hi Dragular,"OrderBy" clause is used where you want to ascending or descing data . (http://msdn.microsoft.com/en-us/library/ms188385.aspx )And "top  AnyintNumber" function returned no of rows which you...

View Article


Re: Last record data

You have a few options to handle this.You could simply grab by the highest "No" (your ID) which should increment with each new value that is added : SELECT * FROM YourTable WHERE No = (SELECT MAX(No)...

View Article


Re: Last record data

Usualy we use id (autoincreament)WHERE id=max(id)If you dont have it, try create temp table with autoincreament(id), insert all rows to the temp table, use temp table id to determine the last record. 

View Article

Re: Last record data

SELECT TOP 1 * FROM yourTable ORDER BY anyColumnHere DESC

View Article

Last record data

Hi all,Nocentre_idaccount_name19ABCD00126ABCD00138ABCD00142DEFG365858DEFG3658This one show save in DB.I want to know is how can I get last record in this database. Account Name is duplicate. All data...

View Article
Browsing latest articles
Browse All 12 View Live




Latest Images