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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleLast 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
More Pages to Explore .....