Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

A user has 10 k means Clusters from a data set and wants to build 10 linear regression models with all these clusters separately. How to do this using loops in R?

Asked by Ranjana Admin Jan 15, 2020 1.7K views 2 answers
Share

Your answer

2 Answers

Myjdw Latest answer

Answered on Mar 28, 2025

DML operations (INSERT, UPDATE, DELETE) are allowed in stored procedures, as well as DDL operations (CREATE, ALTER, DROP, TRUNCATE).

MyJDW

 However, when executing procedures in parallel, using DDL on permanent tables is not recommended. If one procedure creates a table while another tries to do the same, it could lead to conflicts and failures.


To avoid issues, it's best to:


Use DDL statements cautiously within procedures.


Implement transactions properly to ensure data consistency.


Consider using temporary tables if necessary to prevent conflicts.


This ensures better reliability and minimizes the risk of failures in stored procedures.

Was this helpful?

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.