Click here to Skip to main content
15,913,854 members
Home / Discussions / Database
   

Database

 
Questionsql query parser Pin
me_aaryan25-Feb-09 19:20
me_aaryan25-Feb-09 19:20 
AnswerRe: sql query parser Pin
Rupesh Kumar Swami25-Feb-09 19:53
Rupesh Kumar Swami25-Feb-09 19:53 
GeneralRe: sql query parser Pin
me_aaryan25-Feb-09 22:12
me_aaryan25-Feb-09 22:12 
GeneralRe: sql query parser Pin
Rupesh Kumar Swami25-Feb-09 22:35
Rupesh Kumar Swami25-Feb-09 22:35 
AnswerRe: sql query parser Pin
Mycroft Holmes26-Feb-09 0:03
professionalMycroft Holmes26-Feb-09 0:03 
QuestionSql query to select Date between the range Pin
pavanip25-Feb-09 18:56
pavanip25-Feb-09 18:56 
AnswerRe: Sql query to select Date between the range Pin
Mycroft Holmes25-Feb-09 19:13
professionalMycroft Holmes25-Feb-09 19:13 
GeneralRe: Sql query to select Date between the range Pin
pavanip25-Feb-09 22:35
pavanip25-Feb-09 22:35 
GeneralRe: Sql query to select Date between the range Pin
J4amieC25-Feb-09 22:47
J4amieC25-Feb-09 22:47 
GeneralRe: Sql query to select Date between the range Pin
Mycroft Holmes25-Feb-09 23:56
professionalMycroft Holmes25-Feb-09 23:56 
GeneralRe: Sql query to select Date between the range Pin
pavanip26-Feb-09 0:50
pavanip26-Feb-09 0:50 
AnswerRe: Sql query to select Date between the range Pin
Rupesh Kumar Swami25-Feb-09 19:48
Rupesh Kumar Swami25-Feb-09 19:48 
GeneralRe: Sql query to select Date between the range Pin
pavanip25-Feb-09 22:46
pavanip25-Feb-09 22:46 
GeneralRe: Sql query to select Date between the range Pin
Mycroft Holmes25-Feb-09 23:58
professionalMycroft Holmes25-Feb-09 23:58 
QuestionMultiple Database Connections Pin
devi g25-Feb-09 16:23
devi g25-Feb-09 16:23 
QuestionWhat is the best way to place database on client 's machine? Pin
r_mohd25-Feb-09 15:48
r_mohd25-Feb-09 15:48 
AnswerRe: What is the best way to place database on client 's machine? Pin
PIEBALDconsult25-Feb-09 16:06
mvePIEBALDconsult25-Feb-09 16:06 
GeneralRe: What is the best way to place database on client 's machine? Pin
Ashfield26-Feb-09 1:20
Ashfield26-Feb-09 1:20 
AnswerRe: What is the best way to place database on client 's machine? Pin
N a v a n e e t h25-Feb-09 17:16
N a v a n e e t h25-Feb-09 17:16 
QuestionSome Oracle Question Pin
E_Gold25-Feb-09 9:53
E_Gold25-Feb-09 9:53 
AnswerRe: Some Oracle Question Pin
N a v a n e e t h25-Feb-09 17:20
N a v a n e e t h25-Feb-09 17:20 
QuestionHow to impove my query to execute more quickly Pin
dasha_pl25-Feb-09 3:37
dasha_pl25-Feb-09 3:37 
I have the perfomance problem with my query, it executes every time I click on grid paging.
Here is my ms sql query(its output of Nhibernate query):
WITH query AS (SELECT TOP 235800 ROW_NUMBER() OVER (order by  
cast(upper((employee0_.lastname+' '+employee0_.firstname))as nvarchar)ASC , 
cast(upper((employee0_.lastname+', '+employee0_.firstname))as nvarchar)ASC) as __hibernate_row_nr__,

 employee0_.primkey as x0_0_, employee0_.firstname as x1_0_, employee0_.lastname as x2_0_,
 department1_.name as x3_0_, jobtitle2_.job_title as x4_0_, workarea3_.name as x5_0_, 
position4_.position_ as x6_0_, employee0_.active as x7_0_ from otis.cs_employee_ employee0_ 
left outer join otis.cs_department department1_ on employee0_.dept_key=department1_.primkey 
left outer join otis.cs_jobtitle jobtitle2_ on employee0_.job_key=jobtitle2_.primkey 
left outer join otis.cs_workarea workarea3_ on employee0_.work_key=workarea3_.primkey 
left outer join otis.cs_position position4_ on employee0_.pos_key=position4_.primkey 
where (employee0_.site_code!='00' ) 
order by  cast(upper((employee0_.lastname+' '+employee0_.firstname))as nvarchar)ASC , 
cast(upper((employee0_.lastname+', '+employee0_.firstname))as nvarchar)ASC) 
SELECT * FROM query WHERE __hibernate_row_nr__ > 235780 ORDER BY __hibernate_row_nr__


SELECT * FROM query WHERE __hibernate_row_nr__ > 235780 ORDER BY __hibernate_row_nr__



I have many rows in this table( more than 200 000), it executes very slow...
Would it help me if I create a stored procedure for this...or is there any other way?
GeneralRe: How to impove my query to execute more quickly Pin
Luc Pattyn25-Feb-09 3:47
sitebuilderLuc Pattyn25-Feb-09 3:47 
GeneralRe: How to impove my query to execute more quickly Pin
dasha_pl25-Feb-09 4:02
dasha_pl25-Feb-09 4:02 
AnswerRe: How to impove my query to execute more quickly Pin
Wendelius25-Feb-09 4:21
mentorWendelius25-Feb-09 4:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.