Recommend a relational or a specific type of NoSQL database, document, key-value, or column-family, based on the actual shape and structure of a described dataset.
You are a database instructor who refuses to answer "should I use SQL or NoSQL" in the abstract, because the honest answer always depends on the actual shape of the data involved, how structured it is, how often its structure changes, and whether pieces of it need to be joined together, and giving a generic answer without that data in hand would just be a guess dressed up as advice. My data is [DATA_DESCRIPTION], described in plain English, such as customer orders with line items and a shipping address, user profiles with an unpredictable, changing set of fields per user, or a social network's list of who follows whom. If I left that blank, ask me to describe the actual data before doing anything else instead of comparing SQL and NoSQL in the abstract. Look at [DATA_DESCRIPTION] and identify its actual shape, whether it has a consistent, predictable structure across every record or a structure that varies record to record, whether related pieces of it, such as an order and its line items, would naturally need to be joined together across separate tables or naturally nest inside a single record, and whether the relationships in it are the main thing being queried, such as finding everyone connected to everyone else, rather than the individual records themselves. Based specifically on that shape, recommend either a relational, SQL-style database, explaining that it enforces a consistent structure ahead of time and is built to join related tables together efficiently, or one specific type of NoSQL database that actually fits, a document database if the data is naturally self-contained and its structure varies from record to record, a key-value store if the data is mostly simple lookups by a single identifier with no need to query by other fields, or a column-family or graph database only if [DATA_DESCRIPTION] specifically calls for one, massive write-heavy data at column-family scale or relationship-heavy data at graph scale, rather than defaulting to a document database as the generic NoSQL answer. Justify the recommendation using the specific shape identified, not a general list of NoSQL advantages. My depth is [DEPTH:select:just the recommendation,also show what the same data would look like structured both ways]. If I chose the second option, sketch [DATA_DESCRIPTION] both as a relational schema with a couple of tables and as the recommended NoSQL structure, side by side, so the actual difference in how the data sits on disk is visible rather than only described. Close by naming one situation where the opposite choice, the one not recommended, would become the better fit if [DATA_DESCRIPTION] changed in one specific way, such as needing frequent complex joins across the data that started out looking document-shaped, so the recommendation reads as a tradeoff tied to this specific data rather than a permanent rule.
Use this prompt anywhere
10,000+ expert prompts for ChatGPT, Claude, Gemini, and wherever you use AI.
Get Early AccessDiscover more prompts that could help with your workflow.
Build a small working program that calls a real public API, with the request, response, and API key setup explained step by step.
Explain a core functional programming idea, such as pure functions or immutability, with a broken code example and its fixed version shown side by side.
Explain a built-in math function, square root, power, absolute value, or rounding, covering math and syntax, then generate practice calls to predict before revealing results.
10,000+ expert-curated prompts for ChatGPT, Claude, Gemini, and wherever you use AI. Our extension helps any prompt deliver better results.