Geeks Talk

Prepare for your Next Interview




IBMSNAP_LOGMARKER error Q3.$c5, Q3.$c2 are not valid

This is a discussion on IBMSNAP_LOGMARKER error Q3.$c5, Q3.$c2 are not valid within the DB2 forums, part of the Databases category; Hi, i'm working in db2. I've to tune the below query. Select a.run_dates_stations_id, a.station_master_id, a.run_dates_id,b.call_letters, b.dma_id from contract.run_dates_stations a left outer ...


Go Back   Geeks Talk > Databases > DB2

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 11-27-2007
Junior Member
 
Join Date: Nov 2007
Location: hyderabad
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
anant123123 is on a distinguished road
IBMSNAP_LOGMARKER error Q3.$c5, Q3.$c2 are not valid

Hi, i'm working in db2. I've to tune the below query.

Select a.run_dates_stations_id, a.station_master_id, a.run_dates_id,b.call_letters, b.dma_id
from contract.run_dates_stations a left outer join customer.station_master b
on a.station_master_id=b.station_master_id
where (a.ibmsnap_logmarker= '1900-01-01 11:16:30.0' or b.ibmsnap_logmarker= '1900-01-01 11:16:30.0')

when i searched for access plan & optimized query in db2 command center,
i found the below optimized query.

Select q3.$c4 as "run_dates_stations_id", q3.$c6 as "station_master_id", q3.$c3 as "run_dates_id", q3.$c1 as "call_letters", q3.$c0 as "dma_id"
from (select q2.dma_id, q2.call_letters, q2.ibmsnap_logmarker, q1.run_dates_id, q1.run_dates_stations_id, q1.ibmsnap_logmarker, q1.station_master_id
from contract.run_dates_stations as q1 left outer join customer.station_master as q2 on (q1.station_master_id = q2.station_master_id)) as q3
where ((q3.$c5 = '1900-01-01-11.16.30.000000') or (q3.$c2 = '1900-01-01-11.16.30.000000'))

the query is not working and giving an error q3.$c5, q3.$c2 are not valid.
Both should refer to ibmsnap_logmarker field for the two tables.
Can anyone suggest/improve the query?
Reply With Quote
Sponsored Links
Reply

  Geeks Talk > Databases > DB2


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Testcase for valid equivalence class tamizh21 Test Cases 4 10-23-2007 05:01 AM
IO Error malashanbhag Seibel 0 10-19-2007 08:03 PM
Getting error "syntax error in ObjectRepository" siteuse QTP 1 07-05-2007 03:57 PM
DB2 Error Geek_Guest DB2 0 06-16-2007 04:59 PM
Report Net on XP gives error, Cryptographic error has occured chandrabhoopathy1 Data Warehousing 0 05-24-2007 06:07 PM


All times are GMT -4. The time now is 02:11 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved