Showing posts with label SQL. Show all posts
Showing posts with label SQL. Show all posts

Friday, December 8, 2023

Pointing with a cup - SQL Triggers and Cursors

 SQL Triggers and Cursors - duck lips tucked in, we're using a cup today! All those learning to read SQL with Triggers and Cursors, what did you think about how you were going to explain these functions?

I look at this portion of SQL and consider never using it. However, the multiple que for every value within this itinerary is appeasing. I think of an actual programming skill, how to activate what you want and when it's going to happen in this fantastic attempt of learning how to put it so it works just as it is intended to be! There is no tone here, just factual delight that this has to come from another developer in the modularizing of SQL itself. Learning everything up to Views thus far and Stored Procedures into this section - I feel like the visualization and flow of what it is doing, is a borrowed system. It feels, temporary. 

The Triggers are able to aim and pull an activation that sets off a series of events and possibly cursors (multi-dimensional arrays) of values to get the job done. The effect is simple. I understand it. However, the @@FETCH Status does not fit well with me, hence the name to retrieve as a unit together that arrives from something that should be separate one-at-a-time. It is hard to keep these functions separate, since they work together, but the connection that can be made using a regular JOIN statement should suffice this. Why use the @@FETCH command if it doesn't have its own story? 

@@FETCH has a definition that sounded like a space tool that roves and collects like the trash collector repurposed essence in the form of a hired hand. This explained how it could loop throughout the code and bring forth its full bounty. The part that I want to know more about this is how does a @@FETCH Status resource the variable? Does that variable then become empty? Does it change? Is it labeled differently after, in programming? Using this style of looping in SQL does set it apart from other programming languages but I noticed the similarity between robotic programming as well. The SQL is interacting with binary commands that exchange a defined peice of space to explain how those variables were attained. This is attracting my vision of what SQL authors envisioned a database as and what they were doing to pick at specific components with a fine-tooth comb tool. It is simple and it creates the world of it as plausible as possible. 

You know this can get more complex. 

SQL image

Using @@FETCH with Triggers and Cursors is more like the watering can than a gun. Perhaps, you aim for one target (one fieldName and dataType) while grouping the collected to be useful by value for whatever data needs to be collected. I think this can go further and explain how this role can be switched by nurturing the data sets by root or phase of its appearances. If programming buds bugs, because this is something that does happen on its own, then where do these root indicators appear if they transform out of reaction? The code that leaves its program succeptible can be prevented by use of a trigger to watch all variables in any process as a threat. As soon as it becomes a threat, the target assumes it wherever it is. 
Easier said than done but out of purpose of database - it doesn't have a security wall that I want within how the code is structured (that I know of yet since I am still learning). One of the faults I learned with programmers when creating software designs is not having the plans for effective cyber security. It becomes a business and with that, more inputs and outputs to account and monitor which can also decrease runtime. 

The only way it moves is because of the @@FETCH command? 
The interaction after in any collected data set is isolated and the @@FETCH command breaks it apart and brings back to its roots instead of the polymorphism that has been accepted in OOP. Normalization is another process to consider in this that would have to be redefined. 0NF is ideal to contain all root values while 1NF would be processed during programming. These levels are attained with their own mapping that @@FETCH can be considered a spatial tool designed to break down and monitor any changes. 

I may be out of context but it was something that bothered me as I learn this portion of SQL. Getting the syntax confused with other programming languages like robotics and visual basic prove that these develops laid down a framework to integrate other languages like C# (example) to be more poetic in grammatically challenging avenues that uphold its logic. The logic is such a hassle to deal with if you are not accustomed to think instructionally and ponder at the minor details of how things work. 
My suggestion for any programmer learning to deal with getting stuck, read a book that lets you read it. Poetry I do not suggest. Read something that lets you complete the line, give it character where you can in your voice, and read like it is fun. This blockage is cleared, you feel like a success, and you assure yourself that you can read. 

__Mischief



Saturday, November 18, 2023

Writing SQL Queries

 Writing SQL Queries is right alongside robot programming using embedded keywords to operate tasks and processes (which can be separately wrote using SQL). If this were your first time using SQL, I have not had any problems finding websites, blogs, with tutorials that help on the subject. Using the terms and expressing the description of when to use them is great. What I have issues with are the syntax errors and the corrective steps to take. 

From my understanding, when there are certain compile errors with SQL - there are certain routes you should take. It labels the errors as needing an aggregate structure or cannot use certain keywords within the structure you wrote. It was because of the mapping that was involved when initially using the tables, how those were put together, and how they are being used in the query. This part is ommitted from many websites as to reason and it doesn't specifically point out what those terms represent within the structure of the syntax in code. Its like having the label 'verb' or 'pronoun' and you are trying to use it like a predicate (state, affirm, or assert something about the subject of a sentence or an argument of a proposition - google search, dictionary result) sentence without the proper words to state your proposition. 

Grammar involved with coding is an embedded knowledge of what those words already mean. That is defining the keyword, why they used it, and its prolonged effective language skills. I had this issue before with C# and the "asynchronized" string commands while pushing forward with syntax structures. 

SQL is great for separating these types of commands with DDL and DML. DDL (Data Definition Language) is used for the data structures. The DML (Data Manipulation Language) is used when updating data within the table structure, like a variable. Geeks for Geeks website explains this better than I can. What is interesting about it, is understanding to separate these keywords as such. Something that I have not come across any other place. It is establishing the Table as a place itself that can be structured while the keywords within can be manipulated. However this is setup, it has to abide by certain guidelines or it fails for keyword placement and its commands of processes. 

This is important because in the terraform styles of coding, it is writing the code without boundaries and creating an open-spaced domain to run freely. Which is defining the cyberspace a little bit differently, and it reacts differently, with the program and network. It appears to be crafted uniquely to provide sitting rooms to observe interactions therafter. 

Photo by Brett Sayles: https://www.pexels.com/photo/multilevel-atrium-of-building-10772746/
                                                                                                                                            Photo by Brett Sayles


The queries for SQL are a great starter langauge to learn, if you plan on becoming an architect for cyberspace, creating your own open source program, or want to kick off your ideas with your own madness and operate bilaterally with other programs. Building a network library of your own is key to any software programmer and for others to understand the madness, or there is no fun in it. The risk is levying the character to be invitational for others to challenge, the idea is to not become an intruder within your own creation! 

It is expected while there is no online governance to control how people are coding. Everyone is experimenting with their structural skills and language choices, because of time. The idea of programming, especially with AI short-handed undeveloped neural networking designs and intelligence as it is in ethical concerns, is all in testing and development at this point in the world. It is not too late to start learning how to program! The world wants to know how you think and they invite your weird way of interpreting algebra because it could mean the next breakthrough! STEM research is a big topic and if your not developing with it, there is literally something wrong with that direction in our Country efforts, at best, our global efforts. They pay big, want results, and need to mandate the educational steam it can produce for the engineering components to lead our world in its perfect forms, apart from the world, and with the world. 

If that doesn't confuse you and encourage you - then you should be relieved to know, that's what its there for. That somebody out there is trying. That within our world, we are coming up with solutions and the more nitpicky we are with what this means and where its derived from (VIEW = perspective of data collections we use to make things simple with what is), the more flexibility we have and concise language for what is properly in its place and appropriate to talk about. Departmental lingo, is more like it. 

__Mischief

Just do it.

The only way to know, is to do it! Going into my C# Part 2 course and IT Training this term, coming from A results in my first half with ASP...