mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2024-11-30 12:36:03 +00:00
95 lines
3.7 KiB
XML
95 lines
3.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?><sqlb_project><db path="D:/Documents/D2Modder/D2Modder/ironman-dev.db" readonly="0" foreign_keys="1" case_sensitive_like="0" temp_store="0" wal_autocheckpoint="1000" synchronous="2"/><attached/><window><main_tabs open="structure browser pragmas query" current="3"/></window><tab_structure><column_width id="0" width="300"/><column_width id="1" width="0"/><column_width id="2" width="100"/><column_width id="3" width="58404"/><column_width id="4" width="0"/><expanded_item id="0" parent="1"/><expanded_item id="1" parent="1"/><expanded_item id="2" parent="1"/><expanded_item id="3" parent="1"/></tab_structure><tab_browse><current_table name="4,10:main_bufficons"/><default_encoding codec=""/><browse_table_settings/></tab_browse><tab_sql><sql name="1.sql">WITH cte_item_codes(code,flippyfile) AS (
|
|
|
|
SELECT code,flippyfile from armor WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT code,flippyfile from misc WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT code,flippyfile from weapons WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT normcode,flippyfile from armor WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT normcode,flippyfile from weapons WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT ubercode,flippyfile from armor WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT ubercode,flippyfile from weapons WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT ultracode,flippyfile from armor WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT ultracode,flippyfile from weapons WHERE code != ''
|
|
|
|
)
|
|
|
|
|
|
|
|
--SELECT u.code,c.flippyfile
|
|
|
|
--FROM uniqueitems as u
|
|
|
|
--JOIN cte_item_codes as c
|
|
|
|
--ON u.code = c.code
|
|
|
|
|
|
|
|
SELECT s.item,c.flippyfile
|
|
|
|
FROM setitems as s
|
|
|
|
JOIN cte_item_codes as c
|
|
|
|
ON s.item = c.code
|
|
|
|
WHERE s.item != '' AND c.code != ''</sql><sql name="SQL 2">select count(*) from setitems</sql><sql name="SQL 3">WITH cte_item_codes(code,flippyfile) AS (
|
|
|
|
SELECT code,flippyfile from armor WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT code,flippyfile from misc WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT code,flippyfile from weapons WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT normcode,flippyfile from armor WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT normcode,flippyfile from weapons WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT ubercode,flippyfile from armor WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT ubercode,flippyfile from weapons WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT ultracode,flippyfile from armor WHERE code != ''
|
|
|
|
UNION
|
|
|
|
SELECT ultracode,flippyfile from weapons WHERE code != ''
|
|
|
|
)
|
|
|
|
|
|
|
|
SELECT u.code,c.flippyfile
|
|
|
|
FROM uniqueitems as u
|
|
|
|
JOIN cte_item_codes as c
|
|
|
|
ON u.code = c.code
|
|
|
|
|
|
|
|
--SELECT s.item,c.flippyfile
|
|
|
|
--FROM setitems as s
|
|
|
|
--JOIN cte_item_codes as c
|
|
|
|
--ON s.item = c.code
|
|
|
|
|
|
|
|
WHERE
|
|
|
|
u.code <> ''
|
|
|
|
AND c.code <> '';</sql><sql name="SQL 4">WITH cte_item_codes(code,flippyfile) AS (
|
|
|
|
SELECT code,flippyfile from armor
|
|
|
|
UNION
|
|
|
|
SELECT code,flippyfile from misc
|
|
|
|
UNION
|
|
|
|
SELECT code,flippyfile from weapons
|
|
|
|
UNION
|
|
|
|
SELECT normcode,flippyfile from armor
|
|
|
|
UNION
|
|
|
|
SELECT normcode,flippyfile from weapons
|
|
|
|
UNION
|
|
|
|
SELECT ubercode,flippyfile from armor
|
|
|
|
UNION
|
|
|
|
SELECT ubercode,flippyfile from weapons
|
|
|
|
UNION
|
|
|
|
SELECT ultracode,flippyfile from armor
|
|
|
|
UNION
|
|
|
|
SELECT ultracode,flippyfile from weapons
|
|
|
|
)
|
|
|
|
|
|
|
|
select * from cte_item_codes</sql><sql name="SQL 5">SELECT a.flippyfile, m.flippyfile, w.flippyfile
|
|
|
|
FROM armor AS a,
|
|
|
|
misc AS m,
|
|
|
|
weapons AS w
|
|
|
|
WHERE a.code = 'axe'
|
|
|
|
OR a.normcode = 'axe'
|
|
|
|
OR a.ubercode = 'axe'
|
|
|
|
OR a.ultracode = 'axe'
|
|
|
|
OR m.code = 'axe'
|
|
|
|
OR w.code = 'axe'
|
|
|
|
OR w.ultracode = 'axe'
|
|
|
|
OR w.normcode = 'axe'
|
|
|
|
OR w.ubercode = 'axe'</sql><sql name="SQL 6">select item from setitems</sql><current_tab id="5"/></tab_sql></sqlb_project>
|