[SQL] connectby queries

2005-03-28 Thread Chandan_Kumaraiah
Hi,   How do I write hierarchical queries in postgresql, which I would write using ‘connectby’ in oracle??   Thanx in adv Chandan  

[SQL] equivalent of oracle rank() in postgres

2005-03-20 Thread Chandan_Kumaraiah
  Hi,   Jus wanted the equivalent for rank() as in tis example..   SELECT * FROM (   SELECT employee_id, last_name, salary,   RANK() OVER (ORDER BY salary DESC) EMPRANK   FROM employees) WHERE emprank = 3;   Rgds, Chandan

[SQL] query

2005-03-20 Thread Chandan_Kumaraiah
Hi,   In oracle we write sysdate-1 For example,we write a query (select * from table1 where created_date>=sysdate-1).Whats its equivalent in postgre?   Chandan  

[SQL] query

2005-03-17 Thread Chandan_Kumaraiah
  Hi,   In oracle we write sysdate-1 For example,we write a query (select * from table1 where created_date>=sysdate-1).Whats its equivalent in postgre?   Chandan