Can SQL replicate Excel's auto-updating cells based on other cells? [closed] - mysql

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have a database of some devices, each with details on their status for things like maintenance schedule, last calibration date, age, warranty status, etc. One of the points of this database is to give us a yes/no answer whether it should be in service or not, based on all these other data points being a certain way. If this was Excel, I could make a cell and use IF statements to get this automatically, and any time one field like warranty fell out of date, the "in service" field would also switch to "No".
Is it possible for a MySQL database to do this automatically?

Yes. If all the values you need are in one row, you can use a generated column.
If values needed for the calculation come from other rows or tables, then you can use a view.
Other than that, it is hard to provide more specifics because you question lacks helpful details.

Related

Best way to store lot of data - SQL [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I want to design a database which is going to consists of really lot of columns, since it's a web game's inventory but there is going to be really lot of things.
It would probably call for names like "item_1", "item_2" but is that even ideal?
When I plan it to be extended over 1 000 items?
I need to SELECT later if the user has them, every single one.
I plan to use MariaDB and Laravel framework with Jetstream, Livewire and Tailwind.css.
Before you do anything, read about
NF
1NF
2NF
3NF
BCNF
Bearing in mind the knowledge you thusly accumulate, you should reach to a conclusion similar to having some tables like these:
item_types(id, name, ...)
user(username, password, ...)
inventory(user_id, item_type_id, amount)

Difference between control source and row source in Access [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I know there are threads with the answer for this question but as a beginner I am having a really hard time understanding the difference between these two. I am learning Access and have not learnt about SQL statements yet. Most explanation to this question consists of SQL code that I do not understand. If you could explain the difference for a beginner that would be great.
If you have a combobox in your form, it will both have a row source and a control source. The control source is the field in the underlying table where the actual values are stored. The row source is the source of the list of values to select from.
Example: You got a table with flowers. One field is color. You want to limit which colors to enter for the flowers. The you make a table called flower_colors.
In your flower form, you then have a combobox. Its control source will be colors from the table flower and the row source will be flower_colors.

What is the specific use of Pivot table in SQL? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Im curious what is the distinct use of pivot table in database? I mean, how is it apply in real life.
Pivot query help us to generate an interactive table that quickly combines and compares large amounts of data. We can rotate its rows and columns to see different summaries of the source data, and we can display the details for areas of interest at a glance. It also help us to generate Multidimensional reporting.
for more information visit:
http://www.codeproject.com/Tips/500811/Simple-Way-To-Use-Pivot-In-SQL-Query
https://technet.microsoft.com/en-us/library/ms177410(v=sql.105).aspx

How can i remove regular strings from a search key? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to remove some special strings like ' in, at, on, a, an ,with... etc' from a search string in MySql.
eg-
select * from tbl_search where serachkey='best hotels in kerala';
I need to remove 'in' from string and need to look on database for best match, its somthing like google search.
I have one table with id,keys and parent_id.
The most scored parent_id should emit first.
Google Search is not an easy task to build.. but What you are in need of is Natural Language Processing.
Learn about OPEN NLP or Stanford NLP.
This will identify the parts of speech in a given sentence and you can manipulate further as per your needs.
You can also train a model for your needs.
Link for OpenNLP

Searching one field from several mysql databases? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have several databases represents the companies we work.
In every database there are fields which we work on.
And in the fields area, there are field infos and our engineer who worked at that field.
I need to search all databases and filter with engineer names, to get a list of fields he worked.
I hope I could explain.
Any simple solution?
Nope. You're going to have to manually write queries to search each table in each database. The whole idea of database schemas and tables is that they are distinct wrappers for data, which can't be implicitly joined.