SELECT TABLENAME FROM SYS.SYSTABLES WHERE TABLETYPE='T'
SELECT * FROM SYS.SYSTABLES WHERE TABLETYPE='T'
SELECT TABLENAME FROM SYS.SYSTABLES WHERE TABLETYPE='S'
SELECT * FROM SYS.SYSTABLES WHERE TABLETYPE='S'
SELECT TABLENAME FROM SYS.SYSTABLES WHERE TABLETYPE='V'
SELECT * FROM SYS.SYSTABLES WHERE TABLETYPE='V'
SELECT columnname, columndatatype FROM SYS.SYSTABLES t, SYS.SYSCOLUMNS c where t.TABLEID=c.REFERENCEID AND tablename='TREE' order by columnnumber
SELECT c.* FROM SYS.SYSTABLES t, SYS.SYSCOLUMNS c where t.TABLEID=c.REFERENCEID AND tablename='TREE' order by columnnumber
SELECT CONGLOMERATENAME FROM SYS.SYSTABLES t, SYS.SYSCONGLOMERATES c where t.TABLEID=c.TABLEID AND tablename='TREE'
SELECT c.* FROM SYS.SYSTABLES t, SYS.SYSCONGLOMERATES c where t.TABLEID=c.TABLEID AND tablename='TREE'
SELECT * FROM visit_history OFFSET 2 ROWS FETCH NEXT 50 ROWS ONLY
SELECT * FROM visit_history FETCH FIRST 300 ROWS ONLY
SELECT * FROM visit_history FETCH FIRST ROW ONLY
SELECT * FROM visit_history WHERE file_type > 1 OR data_more like '%fxml%'
SELECT count(file_type) as count FROM visit_history WHERE file_type > 0 AND last_visit_time BETWEEN '2022-03-11 00:00:00.000' AND '2022-03-18 13:09:41.000'
SELECT file_type, count(file_type) AS mode FROM visit_history GROUP BY file_type ORDER BY mode DESC FETCH FIRST ROW ONLY