Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Upgrade your account to a Community Supporter account and remove most of the site ads.
Community
General Tabletop Discussion
*Geek Talk & Media
SRD Spells Database 3.5
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="javapadawan" data-source="post: 1120644" data-attributes="member: 1444"><p>True. That was originally how I did things with the old database, by having a validation table of sorts for combo box options on create and search. It is pretty unlikely that anyone would want/need to add or modify spell schools... so it's probably a safe bet to move school out of attribute and back into the spell table.</p><p></p><p></p><p></p><p>Good point. If I was going to be doing a spell sort based on level, it would probably be something like, where attribute_type_id = [class] and attribute_id = [cleric] order by value. Then the data doesn't necessarily even need to be converted.</p><p></p><p>But in your example, I need to check for spells whose levels fall within a certain range. I could still say where attribute_type_id = [class] to avoid an attempt to parse "a pinch of wool" to an integer, however, that still leaves me with my numbers as strings. Same goes for if I want to try to calculate how many pages a spellbook with a given list of spells uses up.</p><p></p><p>I generally use SQL in Java to query the database, even though it's that nasty JetSQL Access uses. Oracle PL/SQL gives me a nice TO_NUMBER function I can fall back on, but I don't know if JetSQL offers anything similar. If not, or if their version is too time-intensive, we might well be better off having a note field or something similar to store non-numeric data, and keep our value field pure. <img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":)" title="Smile :)" data-smilie="1"data-shortname=":)" /></p><p></p><p></p><p></p><p>Indeed. MUCH more fun than actually working. <img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f642.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":)" title="Smile :)" data-smilie="1"data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="javapadawan, post: 1120644, member: 1444"] True. That was originally how I did things with the old database, by having a validation table of sorts for combo box options on create and search. It is pretty unlikely that anyone would want/need to add or modify spell schools... so it's probably a safe bet to move school out of attribute and back into the spell table. Good point. If I was going to be doing a spell sort based on level, it would probably be something like, where attribute_type_id = [class] and attribute_id = [cleric] order by value. Then the data doesn't necessarily even need to be converted. But in your example, I need to check for spells whose levels fall within a certain range. I could still say where attribute_type_id = [class] to avoid an attempt to parse "a pinch of wool" to an integer, however, that still leaves me with my numbers as strings. Same goes for if I want to try to calculate how many pages a spellbook with a given list of spells uses up. I generally use SQL in Java to query the database, even though it's that nasty JetSQL Access uses. Oracle PL/SQL gives me a nice TO_NUMBER function I can fall back on, but I don't know if JetSQL offers anything similar. If not, or if their version is too time-intensive, we might well be better off having a note field or something similar to store non-numeric data, and keep our value field pure. :) Indeed. MUCH more fun than actually working. :) [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Geek Talk & Media
SRD Spells Database 3.5
Top