We are trying to teach Real Life Code in Programming.
Add New column with foreign key using ms sql server
Get link
Facebook
X
Pinterest
Email
Other Apps
alter table [dbo].[Master_Tour] add PackageId int CONSTRAINT fk_master_tour_master_package FOREIGN KEY (PackageId) REFERENCES master_package(PackageId)
Get link
Facebook
X
Pinterest
Email
Other Apps
Comments
Popular posts from this blog
Remove HTML Tages from Datatable In C# First Create This Function. Public string RemoveHTMLTags( string source) { return Regex .Replace(source, "<.*?>", string .Empty); } And Then use like this ---------------------------- // Data Stored in DataTable if (dt.Rows.Count > 0) { string strterm = Convert .ToString(dt.Rows[0]["term"].ToString()); strterm = RemoveHTMLTags(strterm); } else { }
Formula : M = P [ i(1 + i)^n ] / [ (1 + i)^n – 1] M = monthly mortgage payment P = the principal, or the initial amount you borrowed. i = your monthly interest rate. Your lender likely lists interest rates as an annual figure, so you’ll need to divide by 12, for each month of the year. So, if your rate is 5%, then the monthly rate will look like this: 0.05/12 = 0.004167. n = the number of payments, or the payment period in months. If you take out a 30-year fixed rate mortgage, this means: n = 30 years x 12 months per year, or 360 payments. ___________________________________ Start Code _________________________________ using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Oops_Concepts { class Program { static void Main(string[] args) { Program objProgram = new Program(); ...
How to calculate SI (Simple Interest) using C# in Console Application _____________________ start _________________________ using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Oops_Concepts { class Program { static void Main() { Program objProgram = new Program(); objProgram.GetSimpleInterest(); Console.Read(); } public void GetSimpleInterest() { double principle, interst = 0; int time = 0; Console.Write("Enter Principle Am...
Comments
Post a Comment